package com.itheima.pattern.mediator;

public class Client {
    public static void main(String[] args) {

        MediatorStructure mediator = new MediatorStructure();
        HouseOwner houseOwner = new HouseOwner("老王",mediator);
        Tenant qiqi = new Tenant("柳淇", mediator);

        mediator.setHouseOwner(houseOwner);
        mediator.setTenant(qiqi);


        qiqi.constact("老子要租房，必须三室一厅");
        houseOwner.constact("我这里还有两件房子");



    }
}
